package com.xcl.seckill.dao;

import com.xcl.seckill.model.ItemDO;
import com.xcl.seckill.model.ItemDOExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ItemDOMapper {
    long countByExample(ItemDOExample example);

    int deleteByExample(ItemDOExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ItemDO record);

    int insertSelective(ItemDO record);
    List<ItemDO> itemList();
    List<ItemDO> selectByExample(ItemDOExample example);

    int  increaseSales( @Param("id") Integer id,@Param("amount") Integer amount);
    ItemDO selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ItemDO record, @Param("example") ItemDOExample example);

    int updateByExample(@Param("record") ItemDO record, @Param("example") ItemDOExample example);

    int updateByPrimaryKeySelective(ItemDO record);

    int updateByPrimaryKey(ItemDO record);
}